home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / EleOfC++ vrs 0.1 / PictView / TPICTDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-13  |  1.1 KB  |  45 lines  |  [TEXT/KAHL]

  1. /*
  2. ** This is the TPICTDoc class declaration.  This class is an adaptation of 
  3. ** the class of the same name in the book, Elements of C++ Macintosh 
  4. ** Programming, by Dan Weston.
  5. **
  6. ** Copyright © 1991 Mark Gross (gross@kaman.com and
  7. ** RR2, Box 84, Clayville, NY 13322);         
  8. ** this file may be published everywhere, but no charge
  9. ** may be made for its use.  Please contact me about any bugs found.
  10. ** I'm also looking for Macintosh development work, so drop me a line
  11. ** if you think I could help.  
  12. */
  13.  
  14. #define _H_TPICTDoc
  15. #include "TScrollDoc.h"
  16. #include <PrintMgr.h>
  17.  
  18. struct    TPICTDoc:TScrollDoc
  19. {
  20.     Handle    fPict;
  21.     Handle    fHeader;
  22.     THPrint    fPrintRecord;
  23.     
  24.     TDoc* Init(OSType, SFReply *reply);
  25.     Boolean InitDoc(void);
  26.     
  27.     void    Delete(void);
  28.     
  29.     short    GetVertSize(void);
  30.     short    GetHorizSize(void);
  31.     short    GetVertLineScrollAmount(void);
  32.     short     GetHorizLineScrollAmount(void);
  33.     
  34.     void    Draw(Rect *r);
  35.     
  36.     OSType    GetDocType(void);
  37.     Boolean    ReadDocFile(short refNum);
  38.     
  39.     Boolean    CanSaveAs(void);
  40.     void    DoPageSetup(void);
  41.     void    DoPrint(void);
  42.     Boolean    CanPrint(void);
  43.     Boolean    CanPageSetup(void);
  44. };/*end of TPICTDoc class specification*/
  45.